<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="../leaflet/leaflet.js"></script>
    <link rel="stylesheet" href="../leaflet/leaflet.css" />
    <style>
      #my-offline-leaf-map {
        height: 1000px;
        width: 1200px;
      }
    </style>
  </head>
  <body>
    <div id="my-offline-leaf-map"></div>
    <script>
        /**
         * 记载本地切片案例
         * */
      var url = "./map/{z}/{x}/{y}.png";
      var mymap = L.map("my-offline-leaf-map").setView([-66.00372186454047, -52.03126072883607], 1);

      L.tileLayer(url, {
        minZoom: 0,
        maxZoom: 5,
        attribution: false,
        tms: true,
        noWrap: true,
      }).addTo(mymap);
      mymap.on('click',function(e){
        console.log(e)
      })
    </script>
  </body>
</html>
